package serviceImpl;

import bean.DonorsMaterial;
import mapper.DonorsMaterialMapper;
import org.springframework.stereotype.Service;
import service.DonationService;

import javax.annotation.Resource;

@Service
public class DontionServiceImpl implements DonationService {

    @Resource
    private DonorsMaterialMapper donorsMaterialMapper;

    @Override
    public int Add_Donors(DonorsMaterial donorsMaterial) {
        if (donorsMaterial!=null) {
            return donorsMaterialMapper.insert(donorsMaterial);
        }else {
            return 0;
        }
    }
}
